<extend name="Public/base" />
<block name="content">
<div id="content">
	<div id="content-header">
		<div id="breadcrumb">
			<div id="breadcrumb">
			<a href="{:U('Index/index')}" title="首页" class="tip-bottom"><i class="icon-home"></i> 首页</a>
			<a href="{:U('ServiceSeat/myRecommend')}">坐席管理</a>
			<a class="current">{$meta_title}</a>
		</div>
	</div>
	<div class="container-fluid">
		<br>
		<div class="search-form cf">
			<div class="sleft">
				<span class="control-group">
					<select class="form-control" style="width: 150px;" name="type" id="type" >
						<option value="1" <if condition="(int)I('get.type')==1">selected</if>>客户名单</option>
						<option value="2" <if condition="(int)I('get.type')==2">selected</if>>稍后拨打</option>
					</select>
				</span>
				<button class="btn btn-info" id="search_button" url="{:U('ServiceSeat/myRollCall')}"><i class="icon-search icon-white"></i></button>
			</div>
		</div>
		<div class="row-fluid">
			<div class="span12">
				<div class="widget-box">
					<div class="widget-content ">
						<form id="export-form" method="post" action="">
							<if condition="(int)I('get.type')==0">
							Oh!请先筛选！
							</if>
							<if condition="(int)I('get.type')==1">
							<table id="config_table" class="table table-striped with-check">
								<thead>
									<tr>
				                        <th width="5%" class="taskStatus">序号</th>
				                        <th width="15%" class="taskStatus">名称</th>
				                        <th width="10%" class="taskStatus">操作</th>
				                        <th width="70%" class="taskStatus"></th>
									</tr>
								</thead>
								<tbody>
									<notempty name="_list">
						                <volist name="_list" id="val">
						                    <tr>
						                        <td class="taskStatus">{$i}</td>
						                        <td class="taskStatus">{$val.roll_call_name|htmlspecialchars}</td>
						                        <td class="taskStatus">
						                            <a title="查看" href="{:U('myRollCallDial',array('origin'=>2,'roll_call_id'=>$val['roll_call_id']))}"><i class="icon-eye-open"></i> 查看</a>　
						                        </td>
						                        <td class="taskStatus"></td>
						                    </tr>
						                </volist>
									<else/>
										<tr>
											<td colspan="10" class="taskStatus"> Oh! 暂时还没有内容! </td>
										</tr>
									</notempty>
								</tbody>
							</table>
							</if>
							<if condition="(int)I('get.type')==2">
							<table id="config_table" class="table table-striped with-check">
								<thead>
									<tr>
				                        <th width="5%" class="taskStatus">序号</th>
				                        <th width="15%" class="taskStatus">姓名</th>
				                        <th width="15%" class="taskStatus">稍后拨打时间</th>
				                        <th width="10%" class="taskStatus">操作</th>
				                        <th width="55%" class="taskStatus"></th>
									</tr>
								</thead>
								<tbody>
									<notempty name="_list">
						                <volist name="_list" id="val">
						                    <tr>
						                        <td class="taskStatus">{$i}</td>
						                        <td class="taskStatus">{$val.customer_id|getServiceCustomerName}</td>
						                        <td class="taskStatus">{$val.later_call_time|time_format}</td>
						                        <td class="taskStatus">
						                            <a title="查看" href="{:U('myRollCallDial',array('origin'=>'3','id'=>$val['customer_id']))}"><i class="icon-eye-open"></i> 查看</a>　
						                        </td>
						                        <td class="taskStatus"></td>
						                    </tr>
						                </volist>
									<else/>
										<tr>
											<td colspan="10" class="taskStatus"> Oh! 暂时还没有内容! </td>
										</tr>
									</notempty>
								</tbody>
							</table>
							</if>
							<div class="dataTables_paginate fg-buttonset ui-buttonset fg-buttonset-multi ui-buttonset-multi paging_full_numbers" id="DataTables_Table_0_paginate">
								{$_page}
							</div>
						</form>
					</div>
				</div>
			</div>
		</div>
	</div>
</div>
<script type="text/javascript">
highlight_subnav("{:U('ServiceSeat/myRollCall')}");
</script>
</block>
